package com.mewp.permissions.model.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
 * <p>
 * 组织机构
 * </p>
 *
 * @author mewp
 * @since 2023-07-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "SysDept", description = "组织机构")
public class SysDept extends BaseEntity {
    @Serial
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "部门名称")
    private String name;

    @ApiModelProperty(value = "上级部门id")
    private Long parentId;

    @ApiModelProperty(value = "树结构")
    private String treePath;

    @ApiModelProperty(value = "排序")
    private Integer sortValue;

    @ApiModelProperty(value = "负责人")
    private String leader;

    @ApiModelProperty(value = "电话")
    private String phone;

    @ApiModelProperty(value = "状态（1正常 0停用）")
    private Boolean status;
}
